﻿using System;
using Ornament.Domain;

namespace Ornament.MemberShip.Permissions
{
    //public abstract class ResourceInfo : DomainObject<Guid>
    //{
    //    /// <summary>
    //    /// Gets or sets Resource Name for description.
    //    /// </summary>
    //    public virtual string Name { get; set; }

    //    /// <summary>
    //    /// The key of Resources, use the key to find the resource.
    //    /// </summary>
    //    public virtual object ResourceKey { get; set; }

    //    /// <summary>
    //    /// 
    //    /// </summary>
    //    /// <param name="operatorSet"></param>
    //    /// <returns></returns>
    //    public virtual Permission CreatePermission(Enum operatorSet)
    //    {
    //        return new Permission(this) { Operator = Convert.ToInt32(operatorSet) };
    //    }

    //    protected override int CreateHashCode()
    //    {
    //        return ResourceKey.GetHashCode() + Id.GetHashCode();
    //    }
    //}
}